import { createRouter, createWebHistory } from 'vue-router';
import Home from '@/views/Home.vue';
import Restaurant from '@/views/Restaurant.vue';
import User from '@/views/User.vue';

const routes = [
    { path: '/home', component: Home },
    { path: '/restaurant/:id', component: Restaurant, props: true },
    { path: '/user', component: User }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
